<?php
/**
 * 上报各种状态
 *
 * @author		黑冰 <954650386@qq.com>
 */

use \waf\Waf;
use \waf\log\WLog;
use \waf\controller\WController;

class ReportController extends WController
{
    public function serverStatusAction()
    {
        WLog::logInfo("in.", __FILE__, __LINE__, __FUNCTION__);

        $server_name    = trim($this->getRequest()->getParam('server_name', ''));
        $server_ip      = trim($this->getRequest()->getParam('server_ip',   ''));
        $server_port    = trim($this->getRequest()->getParam('server_port', ''));
        $start_time     = trim($this->getRequest()->getParam('start_time',  ''));
        $work_nums      = trim($this->getRequest()->getParam('work_nums',   ''));
        $status         = intval($this->getRequest()->getParam('status',      0));
        $master_pid     = intval($this->getRequest()->getParam('master_pid',      0));
        WLog::logDebug("master_pid = $master_pid, server_name = $server_name, server_ip = $server_ip, server_port = $server_port, start_time = $start_time, work_nums = $work_nums, status = $status", __FILE__, __LINE__, __FUNCTION__);
    }

    public function workStatusAction()
    {

    }
}